Ext.define('AM.view.window.EditTree', {
    extend: 'Ext.window.Window',
    alias: 'widget.edittree',
    stores: ['StoreComboPro', 'StoreComboSubpro', 'StoreComboCild'],
    title: 'Editeaza...',
    layout: 'fit',
    autoShow: true,
    modal: true,
        
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                bodyPadding: '5px,5px,5px,5px',
                layout: 'anchor',
                width: 400,
                defaults: {
                    anchor: '100%'
                },
                items: [{
                    	xtype: 'textfield',
                    	id: 'edit',
                    	name: 'edit',
                    	fieldLabel: 'Editeaza...'
                	}/*,{
                    	xtype:'tip',
                    	hidden: true,
                    	id: 'tip',
                    	name: 'tip'
                    }*/
                ]
            }
        ];

        this.buttons = [
            {
                text: 'Edit',
                id: 'editok',
                action: 'editTree',
                //iconCls: "btn-save",
                //icon:'images/add.png',
//                handler: this.EditTree,
//            	scope: this
            },{
                text: 'Cancel',
                scope: this,
                handler: this.close
            }
        ];

        this.callParent(arguments);
    }
});